package com.asking.service;

import com.asking.dao.HistoryMapper;
import com.asking.domain.History;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Transactional
public class HistoryService  {

    @Resource
    private HistoryMapper  historyMapper;
    public   void    addHistory(History  history){
        historyMapper.insert(history);
    }
}
